#1、输入数字n，输出n天前的日期（time或者datatime模块）
import datetime
n = input("请输入几天前：")
today = datetime.date.today()
print(today)
befor_day = today - datetime.timedelta(days=int(n))
print(befor_day)